﻿using System.Web;
using System.Web.Optimization;

namespace MVC_Project.UI
{
    public class BundleConfig
    {
        // 有关捆绑的详细信息，请访问 https://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include(
                        "~/Scripts/jquery.unobtrusive-ajax*"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备就绪，请使用 https://modernizr.com 上的生成工具仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/layui").Include(
                      "~/layui-v2.6.8/layui.js"));

            bundles.Add(new StyleBundle("~/layui/css").Include(
                      "~/layui-v2.6.8/css/layui.css",
                      "~/layui-v2.6.8/css/site.css"));

            bundles.Add(new ScriptBundle("~/bundles/bear").Include(
                     "~/Scripts/TweenMax.min.js",
                     "~/Scripts/MorphSVGPlugin.min.js",
                     "~/Scripts/bear.script.js"));

            bundles.Add(new StyleBundle("~/bear/css").Include(
                      "~/Content/bear.css.css",
                      "~/Content/bear.reset.min.css",
                      "~/Content/bear.style.css"));
        }
    }
}
